<?php /* Smarty version 2.6.26, created on 2013-10-07 14:26:16
         compiled from news_detail.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'thumb', 'news_detail.tpl', 17, false),array('modifier', 'l', 'news_detail.tpl', 73, false),array('modifier', 'ltpl', 'news_detail.tpl', 122, false),)), $this); ?>
<!--Container-->
<div class="site-wrap3 box-detail clearfix"> 
	<!--Noi dung chinh-->
	<div class="containerLeft" id="containerLeft">
		<div class="boxContent">
			<div class="boxCtTop clearfix">
				<ul class="toolsBar clearfix">
					<li class="pull-left"><a href="#" title="Quan tâm"><i class="icon-bookmark"></i><span>Quan tâm</span></a></li>
					<li class="pull-left"><a href="#" title="Thích"><i class="icon-thumbs-up"></i></a></li>
					<li class="pull-right"><a href="http://<?php echo $_SERVER['HTTP_HOST']; ?>
<?php echo $_SERVER['REDIRECT_URL']; ?>
" class="btnFbShare" title="Share"><i class="icon-share"></i><span>Share</span></a></li>
				</ul>
			</div>
			<!--Anh 1-->
			<div class="imgDetailArticle" id="test"> 
				<!--<p><img alt="" src="../img/grey.gif" id="target" data-original="media/img/imgdetail-1.jpg" /></p>-->
				<?php if ($this->_tpl_vars['news']['news_youtube_id'] == ''): ?>
				<p style="text-align:center"><img alt="" src="<?php echo ((is_array($_tmp=$this->_tpl_vars['news']['news_thumb'])) ? $this->_run_mod_handler('thumb', true, $_tmp, 'crop620x400') : smarty_modifier_thumb($_tmp, 'crop620x400')); ?>
" id="target"/></p>
				<?php else: ?>
				<iframe width="620" height="400" src="//www.youtube.com/embed/<?php echo $this->_tpl_vars['news']['news_youtube_id']; ?>
?wmode=transparent" frameborder="0" allowfullscreen></iframe>
				<?php endif; ?>
				<!--Title anh-->
				<h4><?php echo $this->_tpl_vars['news']['news_title']; ?>
</h4>
								
				<div class="newsContent">
					<?php echo $this->_tpl_vars['news']['news_content']; ?>

				</div>
			</div>
					</div>
		<div class="boxContent">
			<div class="boxCtTop">
				<h3>Comments</h3>
			</div>
			<div class="commentDetailArticle">
				<div class="comments-area">
					<div class="fb-comments" data-href="http://<?php echo $_SERVER['HTTP_HOST']; ?>
<?php echo $_SERVER['REDIRECT_URL']; ?>
" data-width="630"></div>
				</div>
			</div>
		</div>
		<!--box anh hot-->
		<?php if ($this->_tpl_vars['aFrNews']): ?>
		<div class="boxContent">
			<div class="boxCtTop">
				<h3>Tin bạn bè đã đọc</h3>
			</div>
			<div class="hotNenxemPhoto-2 clearfix">
			<?php $_from = $this->_tpl_vars['aFrNews']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['n']):
?>
				<div class="item-relative">
					<div class="img-item"> <a href="<?php echo ((is_array($_tmp='news/detail/%d')) ? $this->_run_mod_handler('l', true, $_tmp, $this->_tpl_vars['n']['news_id']) : smarty_modifier_l($_tmp, $this->_tpl_vars['n']['news_id'])); ?>
"><img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['n']['news_thumb'])) ? $this->_run_mod_handler('thumb', true, $_tmp, 'crop100x100') : smarty_modifier_thumb($_tmp, 'crop100x100')); ?>
" /> </a></div>
					<div class="info-r">
						<h4><a href="<?php echo ((is_array($_tmp='news/detail/%d')) ? $this->_run_mod_handler('l', true, $_tmp, $this->_tpl_vars['n']['news_id']) : smarty_modifier_l($_tmp, $this->_tpl_vars['n']['news_id'])); ?>
"><?php echo $this->_tpl_vars['n']['news_title']; ?>
</a></h4>
					</div>
				</div>
			<?php endforeach; endif; unset($_from); ?>
			</div>
		</div>
		<?php endif; ?>
	</div>
	<div class="containerRight"> 
		<!--Thong tin album-->
		<div class="boxContent">
			<div class="boxCtTop with-shadow">
				<h3>Tin liên quan</h3>
			</div>
			<div class="newsRelative">
				<div class="pinGridWrapper group">
					<div class="ajax Grid Module group" style="display: block;">
						<div id="thumbnail-sm" class="clearfix group">
							<?php $_from = $this->_tpl_vars['newsRelate']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['n']):
?>
							<div class="item-r activeItem group" tabindex="1">
								<div class="boardPinsGrid ajax Pin Module"><i class="show-detail">Chi tiết</i><a href="<?php echo ((is_array($_tmp='news/detail/%d')) ? $this->_run_mod_handler('l', true, $_tmp, $this->_tpl_vars['n']['news_id']) : smarty_modifier_l($_tmp, $this->_tpl_vars['n']['news_id'])); ?>
" class="boardPinsGridPin"> <img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['n']['news_thumb'])) ? $this->_run_mod_handler('thumb', true, $_tmp, 'w105') : smarty_modifier_thumb($_tmp, 'w105')); ?>
" /> </a> </div>
							</div>
							<?php endforeach; endif; unset($_from); ?>
						</div>
					</div>
				</div>
			</div>
			<!--<div class="boxBottom"> <a href="javascript:void(0)" class="btn-follow btn-relative"><i class="icon-ok"></i> <span class="txt-follow">Dõi theo</span><span class="txt-unfollow">Ngừng dõi theo</span></a> </div>--> 
		</div>
		<div class="boxContent">
			<div class="boxCtTop">
				<h3>Người đã đọc tin</h3>
			</div>
			<div class="memRead clearfix">
				<ul>
					<?php $_from = $this->_tpl_vars['aReader']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['id'] => $this->_tpl_vars['r']):
?>
					<li><a href="<?php echo ((is_array($_tmp='user/home/%d')) ? $this->_run_mod_handler('l', true, $_tmp, $this->_tpl_vars['id']) : smarty_modifier_l($_tmp, $this->_tpl_vars['id'])); ?>
"> <img title="<?php echo $this->_tpl_vars['r']['fullname']; ?>
" src="<?php echo ((is_array($_tmp=$this->_tpl_vars['r']['avatar'])) ? $this->_run_mod_handler('thumb', true, $_tmp, 'crop40x40') : smarty_modifier_thumb($_tmp, 'crop40x40')); ?>
" /> </a></li>
					<?php endforeach; endif; unset($_from); ?>
				</ul>
			</div>
		</div>
	</div>
	<!--/ End noi dung chinh--> 
	<!--btn len dau trang-->
	<div class="btnUpTop"><a href="#" title="Lên đầu trang">Lên đầu trang</a></div>
</div>

<script src="<?php echo ((is_array($_tmp='js/jquery-ui.min.js')) ? $this->_run_mod_handler('ltpl', true, $_tmp) : smarty_modifier_ltpl($_tmp)); ?>
" type="text/javascript" charset="utf-8"></script> 
<script src="<?php echo ((is_array($_tmp='js/jquery.slimscroll.min.js')) ? $this->_run_mod_handler('ltpl', true, $_tmp) : smarty_modifier_ltpl($_tmp)); ?>
" type="text/javascript" charset="utf-8"></script> 
<script src="<?php echo ((is_array($_tmp='js/jquery.masonry.min.js')) ? $this->_run_mod_handler('ltpl', true, $_tmp) : smarty_modifier_ltpl($_tmp)); ?>
" type="text/javascript" charset="utf-8"></script>
<?php echo '
<script>
$(function(){
  $(\'.pinGridWrapper\').slimScroll({
      height: \'459px\',
			size:\'10px\'
  });
  
  var $container = $(\'#thumbnail-sm\');
	$container.imagesLoaded( function(){
		$container.masonry({
			isAnimated: true,
			itemSelector: \'.item-r\',
  		columnWidth: 115
  	});
	});
});
</script> 
'; ?>